#include "DualSword.h"

// Constructor
CDualSword::CDualSword(void)
{
}

// Destructor
CDualSword::~CDualSword(void)
{
}

// Initialise
void CDualSword::Initialise(const int SIZE_X, const int SIZE_Y, const int level)
{
	// Initialise Stats
	this->CWeapon::Initialise( SIZE_X, SIZE_Y, ATTACK_ANIMATION_TIMER, level, ATTACK_DAMAGE, ATTACK_LEVEL_MODIFIER, ATTACK_SPEED );

	// Initialise Sprites
	this->InitSprite( TOTAL );
	
	this->SetSprite( PRIMARY_START		, FILEPATH_WEAPON_DUALSWORD_PRIMARY_START );
	this->SetSprite( PRIMARY_END		, FILEPATH_WEAPON_DUALSWORD_PRIMARY_END );

	this->SetSprite( SECONDARY_START	, FILEPATH_WEAPON_DUALSWORD_SECONDARY_START );
	this->SetSprite( SECONDARY_END		, FILEPATH_WEAPON_DUALSWORD_SECONDARY_END );

	// Initialise Data
	this->sprite_anim_start	= PRIMARY_START;
	this->sprite_anim_end	= PRIMARY_END;

	this->type_id = DUALSWORD;
}

// Primary Attack
void CDualSword::AttackPrimaryAttack(void)
{
	// Primary Attack Animation
	this->sprite_anim_start	= PRIMARY_START;
	this->sprite_anim_end	= PRIMARY_END;

	CWeapon::AttackPrimaryAttack();
}

// Secondary Attack
void CDualSword::AttackSecondaryAttack(void)
{
	// Secondary Attack Animation
	this->sprite_anim_start	= SECONDARY_START;
	this->sprite_anim_end	= SECONDARY_END;

	CWeapon::AttackSecondaryAttack();
}